import request from "@/libs/request";


const basePath = '/appcloud-dashboard' ;

export const apiUrls = {
	getClusterDashboard : basePath + `/api/cluster/dashboard/getClusterDashboard`,
	getDashboardById : basePath + `/api/cluster/dashboard/getDashboardById`,
}



// 根据集群id查询集群统计数据(概览使用)
export async function getClusterDashboard(params){
	return request( apiUrls.getClusterDashboard , {
      method:'POST',
      body:params
  })
}


// 根据集群id获取内存、磁盘监控信息(集群列表使用)
export async function getDashboardById(params){
	return request( apiUrls.getDashboardById + `?id=${params.id}` , {
      method:'POST',
      body:params
  })
}
